import { http } from "@/utils/http";
import { ApplayGameGuildBody } from "./game-guild";
export interface ApplayMCNBody extends Omit<ApplayGameGuildBody, 'organ_name'> {



  /**
   * 机构名字，最多10个字
   */
  mcn_name: string;


}
export const postApplayMCN = (data: ApplayMCNBody) => {
  return http.post('/cooperate/apply.mcn', { data });
}

/**
 * 可以为空
 */
export interface MCNApplayInfo extends Omit<ApplayMCNBody, 'agree'> {

  /**
   * 审核状态1 审核中 2 已审核 3未通过
   */
  state: '1' | '2' | '3';

}
/**
 * 给出当前的审核状态
 * @returns 
 */
export const getMCNApplayInfo = () => {
  return http.get<MCNApplayInfo>('/cooperate/get.mcn');
}